package homeword.personBlowAirConditioner;

public class Car {
    private int temperature;

    public Car(int temperature){
        this.temperature = temperature;
    }
    class Air {
        /**
         * 吹风功能
         */

        void flow(){
            if(temperature>40){
                System.out.println("温度超过40度，空调吹冷气");
            }else if(temperature<0){
                System.out.println("温度低于0度，空调吹暖气");
            }else {
                System.out.println("温度在0-40之间，温度正常，关闭空调");
            }

        }
    }
    public Air getAir(){
        return new Air();
    }


}
